home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: br34.bearriver.com!dmurphy
- From: Duane Murphy <dmurphy@bearriver.com>
- Subject: Binary IOStreams?
- Sender: usenet@BearRiver.com (Usenet News)
- Message-ID: <DKny36.A0@BearRiver.com>
- Date: Thu, 4 Jan 1996 15:37:54 GMT
- X-Xxdate: Thu, 4 Jan 1996 03:36:13 GMT
- X-Xxmessage-Id: <AD11DCADAE014E22@br34.bearriver.com>
- Content-Transfer-Encoding: 8bit
- Content-Type: text/plain; charset=ISO-8859-1
- Nntp-Posting-Host: br34.bearriver.com
- Mime-Version: 1.0
- Organization: Bear River Associates
- X-Newsreader: Nuntius 2.0.4_PPC
-
- Are IOStreams (the ios & streambuf hieararchy) always text streams?
- Is there a way to make the become binary? Is there a seperate
- specification or hierarchy for binary streams?
-
- By binary streams I mean streams where operator>>(int) does _NOT_
- first convert to the text of the number but just emits its binary
- representation (ie by calling streambuf::write()).
-
- If I recall my reading in the IOStreams Handbook, the ios hieararchy
- actually takes care of the translation and the streambuf is the
- interface to the end point. Therefore it seems reasonable that one
- could create a new ios type hieararchy customized for binary
- streams. A kind of iosb (I originally write bios but that is an
- overused name).
-
- Has any one done this? Does this make sense?
-
- Thanks for your comments?
-
- ...Duane Murphy
-
- Bear River Associates, Inc.
- dmurphy@bearriver.com
-